package com.nuoniu.sibanyun.mapper.crm.call;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.entity.crm.call.CrmCallBill;
import com.nuoniu.sibanyun.entity.crm.call.dto.CrmCallBillDto;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 客户管理-外呼账单 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2022-05-06
 */
public interface CrmCallBillMapper extends BaseMapper<CrmCallBill> {

    CrmCallBill getCurrentBillByCompany(Integer companyId);

    /**
     * 分页查询 账单
     * @param page
     * @param companyId
     * @param crmCallBillDto
     * @return
     */
    Page<CrmCallBill> pageList(Page page,Integer companyId,@Param("dto") CrmCallBillDto crmCallBillDto);


}
